package com.coldchain.cys.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author tianpeng
 * @since 2018-08-28
 */
@TableName("t_cys")
public class Cys implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 承运商主表
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 承运商姓名
     */
	private String name;
    /**
     * 企业名称
     */
	private String enterpriseName;
    /**
     * 地区
     */
	private String area;
    /**
     * 手机号码
     */
	private String phone;
    /**
     * 密码
     */
	private String password;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 乐观锁
     */
	@Version
	private Integer version;

	/**
	 * 当前状态是否启用状态0启用 -1禁用
	 */
	private Integer isuse ; 
	
	/**
	 * 是否被删除0正常 -1被删除
	 */
	@TableLogic
	private Integer isdel ; 
	
	/**
	 * 拔出佣金比例
	 */
	private BigDecimal scale ;

	@TableField("deviceHttp")
	private String deviceHttp;
	@TableField("deviceToken")
	private String deviceToken;

	public BigDecimal getScale() {
		return scale;
	}

	public void setScale(BigDecimal scale) {
		this.scale = scale;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public Integer getIsuse() {
		return isuse;
	}

	public void setIsuse(Integer isuse) {
		this.isuse = isuse;
	}

	public String getDeviceHttp() {
		return deviceHttp;
	}

	public void setDeviceHttp(String deviceHttp) {
		this.deviceHttp = deviceHttp;
	}

	public String getDeviceToken() {
		return deviceToken;
	}

	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}
}
